using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Yozeev.UserManagerment.Users;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 航班可售票
    /// </summary>
    public class TicketScheduleEnable : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 航班标识
        /// </summary>
        public Guid ScheduleId { get; set; }
        [ForeignKey("ScheduleId")]
        public virtual Schedule Schedule { get; set; }
        /// <summary>
        /// 票型标识
        /// </summary>
        public Guid? TicketPriceId { get; set; }
        [ForeignKey("TicketPriceId")]
        public virtual TicketPrice TicketPrice { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}
